<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<button id="bt">我咋着</button>
</body>

<script>

    document.getElementById("bt").onclick=function () {
        alert("bbbbbbbbbb")

    }


</script>
</html>